Add obarray-clear and use it
authorMattias Engdegård <mattiase@acm.org>
Sun, 11 Feb 2024 17:30:22 +0000 (18:30 +0100)
committerMattias Engdegård <mattiase@acm.org>
Fri, 23 Feb 2024 12:02:27 +0000 (13:02 +0100)
commit6a182658a533acab94d8fa0aec3e2b7a4f7d6a93
tree566d832e87c1b4aa8b0f4ca6e0820c0de03cbe39
parent3beaa3131e78bea618cb93d03c5d8b0f8977fb94
Add obarray-clear and use it

* lisp/obarray.el (obarray-clear): New.
* lisp/abbrev.el (clear-abbrev-table):
* lisp/vc/vc.el (vc-clear-context): Use it instead of assuming the
obarray is a vector that can be 0-filled.
* test/lisp/obarray-tests.el (obarray-clear): New test.
lisp/abbrev.el
lisp/obarray.el
lisp/vc/vc.el
test/lisp/obarray-tests.el